import request from '@/utils/request'

// 查询上课时段信息列表
export function listInterval(query) {
  return request({
    url: '/edu/interval/list',
    method: 'get',
    params: query
  })
}

// 查询上课时段信息详细
export function getInterval(intervalId) {
  return request({
    url: '/edu/interval/' + intervalId,
    method: 'get'
  })
}

// 新增上课时段信息
export function addInterval(data) {
  return request({
    url: '/edu/interval',
    method: 'post',
    data: data
  })
}

// 修改上课时段信息
export function updateInterval(data) {
  return request({
    url: '/edu/interval',
    method: 'put',
    data: data
  })
}

// 删除上课时段信息
export function delInterval(intervalId) {
  return request({
    url: '/edu/interval/' + intervalId,
    method: 'delete'
  })
}

// 导出上课时段信息
export function exportInterval(query) {
  return request({
    url: '/edu/interval/export',
    method: 'get',
    params: query
  })
}